package com.myapp.Data;

import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.WritableMap;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * author : YuFeng
 * e-mail : 923462992@qq.com
 * date   : 2019/8/821:05
 * desc   :
 */
public class Giz implements Serializable {

    @SerializedName("Device_ErrorImfor")
    private int Imfor;
    @SerializedName("Device_FMBT_16_Freq")
    private String Fmbt_16;
    @SerializedName("Device_FMBT_StateFreqVol")
    private String Fmbt_State;
    @SerializedName("Device_OneLight")
    private String oneLight;
    @SerializedName("Device_RoomTemp")
    private int roomTemp;
    @SerializedName("Device_SaunaRunTime")
    private int SRTime;
    @SerializedName("Device_SaunaStateTimeTemp")
    private String ssTimeTemp;
    @SerializedName("Device_SystemFan")
    private String SystemFan;
    @SerializedName("Device_SystemPower")
    private String SystemPower;
    @SerializedName("Device_TwoLight")
    private String TwoLight;

    public Giz(int imfor, String fmbt_16, String fmbt_State, String oneLight, int roomTemp, int SRTime, String ssTimeTemp, String systemFan, String systemPower, String twoLight) {
        Imfor = imfor;
        Fmbt_16 = fmbt_16;
        Fmbt_State = fmbt_State;
        this.oneLight = oneLight;
        this.roomTemp = roomTemp;
        this.SRTime = SRTime;
        this.ssTimeTemp = ssTimeTemp;
        SystemFan = systemFan;
        SystemPower = systemPower;
        TwoLight = twoLight;
    }

    public WritableMap getAsWritableMap(){
        WritableMap params = Arguments.createMap();
        params.putString("Device_FMBT_16_Freq",Fmbt_16);
        params.putInt("Device_ErrorImfor",Imfor);
        params.putString("Device_FMBT_StateFreqVol",Fmbt_State);
        params.putString("Device_OneLight",oneLight);
        params.putString("Device_SaunaStateTimeTemp",ssTimeTemp);
        params.putString("Device_SystemFan",SystemFan);
        params.putString("Device_SystemPower",SystemPower);
        params.putString("Device_TwoLight",TwoLight);
        params.putInt("Device_RoomTemp",roomTemp);
        params.putInt("Device_SaunaRunTime",SRTime);
        return params;
    }
}
